/*
 * @Author: heinan
 * @Date: 2021-07-14 17:24:49
 * @Last Modified by: heinan
 * @Last Modified time: 2021-07-15 16:49:16
 */

const defaultState = {
  title: "默认标题",
};
const app = function (state = defaultState, { type, payload }) {
  switch (type) {
    case "update_title":
      return {
        ...state,
        title: payload,
      };
    default:
      return state;
  }
};
export default app;
